const mutations = {
    loginSuccess(state,data){
        state.userName = data.userName;
        state.status = 1;
        state.age = data.age;
        //return Object.assign({},state,{userName : data.userName,status:1,age:data.age});
    },
    beginLogin(state,status){
        state.status = status;
    }
}

export default mutations;